package com.yjq.blog.utils;

import lombok.Data;

import java.util.List;

@Data
public class Page<T> {

    private Integer currentPage;

    private Integer pageSize;

    private Integer totalPage;

    private Long totalNum;

    private List<T> list;

    public Page(List<T> list, Integer currentPage, Integer pageSize, Integer totalPage, Long totalNum) {
        this.list = list;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.totalNum = totalNum;
    }
}
